﻿using System;
using System.Windows.Forms;

namespace PolePosition.v3.Desktop.Utility
{
    public partial class TabBrowser : UserControl
    {
        public TabBrowser()
        {
            InitializeComponent();
        }

        public void ShowBrowser(string title, string url)
        {
            if (string.IsNullOrEmpty(title))
                panelExTitle.Visible = false;
            panelExTitle.Text = title;
            webBrowser1.Navigate(url);
            //webBrowser1.Navigate("http://www.dev-poleposition.com/Deploy/WebSite2.1/GEMap.aspx?f=d&hl=en&saddr=37.243963,%20-107.874283&daddr=37.122299,-107.626252&om=1&vendorProjectId=16&type=ProjectsDistributionInspection&modeType=DEV");
        }

        private void buttonItemPrint_Click(object sender, EventArgs e)
        {
            webBrowser1.ShowPrintPreviewDialog();
            //webBrowser1.Print();
        }
    }
}
